
#ifndef FIXEDHANDLER_H
#define FIXEDHANDLER_H

#include <BFixedRestraint>
#include <BHandler>
#include <BTextual>
#include <BBody>

using namespace BWE;

class FixedHandler : public BHandler
{
public:
	FixedHandler();
	~FixedHandler();

protected:
	virtual void attached(BViewer* viewer);
	virtual void detached(BViewer* viewer);

	virtual void paint(BPainter& painter);
	virtual void render(BRender& render);

	virtual void styleEvent(const BEvent& event);

protected:
	BHolder<BBody>			_nodeA;
	BHolder<BBody>			_nodeB;
	BHolder<BFixedRestraint>	_restraint;
	BHolder<BTextual>			_lengthText;
};

#endif

